home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BBS in a Box 7
/
BBS in a Box - Macintosh - Volume VII (BBS in a Box) (January 1993).iso
/
Files
/
Art
/
I
/
Imagic.cpt
/
External Functions
/
Blank XFunction
/
myFunction.c
< prev
next >
Wrap
Text File
|
1992-03-30
|
3KB
|
94 lines
/**************************************************************************************************
* myFunctions.c
*
* This is the file where you (the programmer) will put your code. The three functions
* below are the skeletal parts of what you must fill in. Just enter your code into each
* corresponding function, compile, and link with the ImagicXFunction Library. Then, you
* are done.
*
* See Documentation for further help. All of your answers should be answered there.
*
* For more complex and technical questions that the documentation could not answer,
* contact me, Brian Powell:
*
* (E-Mail is the best way. Preferably Internet)
* Internet : powellb@boulder.colorado.edu
* AppleLink: d3706
*
* (If you have no other means...)
* Brian Powell
* Colorado Center for Astrodynamics Research
* University of Colorado at Boulder
* Campus Box 431
* Boulder, CO 80309
* (303) 492-6677
*************************************************************************************************/
/* Include these files.
*/
#include "XFunctions.h"
/* Do any Definitions here.
*/
/* Declare any functions you may create here.
*/
/* This is called whenever Imagic is beginning. You set up your parameters here. If there is
* anything you want to initialize, do that here.
*/
pascal OSErr Initialize(theParameters)
InitStruct *theParameters;
{
OSErr theError = noErr;
/* Insert Your Parameters Here. If these parameters are fine with you, leave them,
* otherwise set them up for your own needs. This is also the default settings, so don't
* change it unless you need to.
*/
theParameters->Filter = FALSE;
theParameters->NumOfImages = 1;
/* Make sure that we are not goint to crash Imagic on startup with wrong calls.
*/
if (GetVersion() < EXTERNAL_FUNCTION_LIBRARY_VERSION_NUM)
return (theError);
/* Insert your initialization code here.
*/
/* Let's go back to Imagic, giving it the parameters for our external module. */
return (theError);
}
/* This function is called whenever the user selects your command from the menu. This is the
* heart of your function.
*/
pascal OSErr ExecuteMenu()
{
OSErr theError=noErr;
/* Insert your code here.
*/
return (theError);
}
/* This function is called whenever Imagic quits. If you need to clear anything up before it
* quits, do so here.
*/
pascal OSErr Exit()
{
OSErr theError = noErr;
/* Insert your shut-down code here. Deallocate anything you may have left around, Do
* anything you may need to do as Imagic is quitting.
*/
/* Let's let Imagic quit, returning an error that may have occured.
*/
return (theError);
}